package com.stylefeng.guns.modular.domain_manage.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 域名信息表
 * </p>
 *
 * @author GodRui
 * @since 2020-06-29
 */
@TableName("domain_info")
public class DomainInfo extends Model<DomainInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 域名名称
     */
    @TableField("domain_name")
    private String urlName;
    /**
     * 状态：0-失效，1-在用，2-备用（未激活使用）
     */
    private Integer status;
    /**
     * 添加时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     *  类型 0 落地页域名 1 资源域名
     * */
    @TableField("type")
    private Integer type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrlName() {
        return urlName;
    }

    public void setUrlName(String urlName) {
        this.urlName = urlName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DomainInfo{" +
        "id=" + id +
        ", urlName=" + urlName +
        ", status=" + status +
        ", createTime=" + createTime +
                ", type=" + type +
        "}";
    }
}
